package com.blb.zy_community.service.impl;

import com.blb.zy_community.entity.SysRoleMenu;
import com.blb.zy_community.mapper.SysRoleMenuMapper;
import com.blb.zy_community.service.ISysRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色和菜单关联表 服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {

    @Autowired
    private SysRoleMenuMapper sysRoleMenuMapper;
    @Override
    public List<Long> selectMenuByRoleId(Long roleId) {
        return sysRoleMenuMapper.selectMenuByRoleId(roleId);
    }
}
